package zucc.lcj.android_finalwork;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

import com.airbnb.lottie.LottieAnimationView;

import org.w3c.dom.Text;

public class SpiashScreen extends AppCompatActivity {

    LottieAnimationView lottie;
    TextView text;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.spiashscreen);

        lottie = (LottieAnimationView) findViewById(R.id.lottie);
        text = (TextView) findViewById(R.id.text);
        text.animate().translationX(2000).setDuration(2000).setStartDelay(3800);
//        lottie.animate().translationX(2000).setDuration(2000).setStartDelay(2900);

        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                Intent intent = new Intent(SpiashScreen.this,LoginActivity.class);
                startActivity(intent);
                System.out.println("has show");
            }
        },5000);
    }
}
